Skip to content

fix: use BareBonesBrowserLaunch for Privacy Policy link on all platforms - #264

Merged
tonygermano merged 1 commit into
OpenIntegrationEngine:mainfrom
dowel015:fix/privacy-policy-link-issue-86
Nov 7, 2026
Merged

tonygermano merged 1 commit into
OpenIntegrationEngine:mainfrom
dowel015:fix/privacy-policy-link-issue-86

Conversation

@dowel015

Copy link
Copy Markdown

Summary

  • On some Linux platforms, Desktop.isDesktopSupported() returns true but Desktop.getDesktop().browse() throws an exception, causing the Privacy Policy hyperlink in the first login dialog to silently fail
  • Removed the Desktop API usage entirely from the hyperlink listener
  • Now calls BareBonesBrowserLaunch.openURL() directly, which works reliably cross-platform

Fixes #86

Test plan

  • Click the Privacy Policy link on the first login dialog on Linux — confirm it opens in the default browser
  • Verify the same on Windows and macOS

🤖 Generated with Claude Code

@mgaffigan

Copy link
Copy Markdown
Contributor

@dowel015, this one also looks good, but needs a DCO. Please add.

@kryskool

Copy link
Copy Markdown
Contributor

Be carefull, commit come from claude AI, a licencing problem can appear

@github-actions

github-actions Bot commented Mar 17, 2026 •

Copy link
Copy Markdown

Test Results

  141 files  ±0    141 suites  ±0   3m 27s ⏱️ +28s
  919 tests ±0    919 ✅ ±0  0 💤 ±0  0 ❌ ±0 
1 051 runs  ±0  1 045 ✅ ±0  6 💤 ±0  0 ❌ ±0 

Results for commit 85bf679. ± Comparison against base commit 892e33f.

♻️ This comment has been updated with latest results.

@dowel015
dowel015 force-pushed the fix/privacy-policy-link-issue-86 branch 2 times, most recently from 56212fc to b1165d7 Compare April 2, 2026 18:21
Desktop.getDesktop().browse() throws on some Linux platforms even when
Desktop.isDesktopSupported() returns true, causing the Privacy Policy
hyperlink in FirstLoginDialog to silently fail. Replace the Desktop
if/else with a direct call to BareBonesBrowserLaunch.openURL() which
works reliably cross-platform. Fixes OpenIntegrationEngine#86.

Issue: OpenIntegrationEngine#86
Signed-off-by: Joshua Dowell <joshua.dowell@centrallogic.com>
Signed-off-by: Tony Germano <tony@germano.name>

@tonygermano tonygermano left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM. Clean implementation of the fix described in #86 .

My recent force push:

  • rebased to resolve conflict since the gradle source files move
  • removed unused java.awt.Desktop import

@tonygermano
tonygermano merged commit 85bf679 into OpenIntegrationEngine:main Nov 7, 2026
11 of 12 checks passed
@tonygermano tonygermano added this to the Next Release milestone Nov 7, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

[BUG] Clicking Privacy Policy Link on First Login dialog does not work on some platforms

5 participants